﻿#ifndef FILEINFO_H
#define FILEINFO_H

#include "sizetype.h"
#include <QWidget>
#include <QFileInfo>
#include <QDesktopServices>
#include <QDebug>

namespace Ui {
class FileInfo;
}

class FileInfo : public QWidget
{
    Q_OBJECT

public:
    explicit FileInfo(const QString &filePath,QWidget *parent = nullptr);
    ~FileInfo();
    void updateFileStatus();
    void setFileStatus(const int &percent);
signals:
    void downLoadFile();
private:
    Ui::FileInfo *ui;
    QString filePath;
};

#endif // FILEINFO_H
